local index = Var("GameCommand"):GetIndex()

local t = Def.ActorFrame{}

-- this renders the text of a single choice in the scroller
t[#t+1] = LoadFont("_upheaval_underline 80px")..{
	Name="Choice"..index,
	Text=string.upper(THEME:GetString( 'ScreenTitleMenu', Var("GameCommand"):GetText() )),

	InitCommand=function(self) self:shadowlength(0.5) end,
	OnCommand=function(self) self:diffusealpha(0):sleep(index*0.075):linear(0.2):diffusealpha(1) end,
	OffCommand=function(self) self:sleep(index*0.075):linear(0.18):diffusealpha(0) end,

	GainFocusCommand=function(self) self:stoptweening():decelerate(0.1):zoom(0.32):diffuse(PlayerColor(PLAYER_2)):glow(1,1,1,0.5):decelerate(0.05):glow(1,1,1,0) end,
	LoseFocusCommand=function(self) self:stoptweening():decelerate(0.1):zoom(0.22):diffuse(ThemePrefs.Get("RainbowMode") and {1,1,1,1} or color("#888888")):glow(1,1,1,0) end
}

return t
